function mklist() {
  var link = "";
  //alert(n);
  for (var i = 1; i < n + 1; i++) {
    var trDom = $("#link-" + i);
    if (trDom.length > 0) {
      link = link + "<li" + trDom.find(".hidden").text() + "><a href=\"" + trDom.find(".url").val() + "\" title=\"" + trDom.find(".title").val() + "\" " + trDom.find(".target").val() + ">" + trDom.find(".text").val() + "</a></li>\n";
      link = link.replace(/True/g, "target=\"_blank\"");
      link = link.replace(/False/g, "");
    }
  }
  $("#inpContent").val(link);
}
//mklist();
function mknew() {
  n++;
  //alert(n);
  LinkHtml = LinkHtml.replace(/-id-/g, n);
  LinkHtml = LinkHtml.replace(/-target-/g, "False");
  $("#mknew").before(LinkHtml);
  $('#link-3 input').mouseover(function () {
    $(this).select();
  })
  $("#link-" + n + " .target").after('<span class="imgcheck" onclick="changeCheckValue(this);"></span>');
}
$(function () {
  $("#xnxf-table").delegate("input", "change", function () {
    mklist();
  });
  $("#xnxf-table").mouseout(function () {
    mklist();
  });
})
